|
|
|
| TABLE 3.1.CONTINUED | | Object | Property | Value | | TextBox1 | Name | txtInput | | Left | 0 | | Top | 0 | | Text | (blank) |
|
|
|
|
|
|
Then, by using the Menu Editor, add the menu options shown in Figure 3.10 to the MDI form's menu. |
|
|
|
|
|
|
|
|
Figure 3.10.
The MDI parent menu shown in the Menu
Editor. |
|
|
|
|
|
|
|
|
So that this application can display a child form, add the following code to the MDI parent form: |
|
|
|
|
|
|
|
|
Dim intFormCtr As Integer
Private Sub MDIForm_Load()
intFormCtr = 1
frmNote.Caption = NotePad Version & intFormCtr
End Sub
Private Sub mnuFileNew_Click()
Dim NewNote As New frmNote
intFormCtr = intFormCtr + 1
NewNote.Show
NewNote.Caption = NotePad Version & intFormCtr
End Sub |
|
|
|
|
|